package 设计模式.适配器模式;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author 孔令富  2021/10/26
 */
public class UserInfoBefore implements MethodBeforeAdvice {

    //MethodBeforeAdvice 前置通知
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println(args[0] + "身份识别通过");
    }
}
